package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Tag entity. @author MyEclipse Persistence Tools
 */

public class Tag implements java.io.Serializable {

	// Fields

	private Long id;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer orders;
	private String icon;
	private String memo;
	private String name;
	private Integer type;
	private Set articleTags = new HashSet(0);
	private Set productTags = new HashSet(0);

	// Constructors

	/** default constructor */
	public Tag() {
	}

	/** minimal constructor */
	public Tag(Timestamp createDate, Timestamp modifyDate, String name,
			Integer type) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.name = name;
		this.type = type;
	}

	/** full constructor */
	public Tag(Timestamp createDate, Timestamp modifyDate, Integer orders,
			String icon, String memo, String name, Integer type,
			Set articleTags, Set productTags) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.orders = orders;
		this.icon = icon;
		this.memo = memo;
		this.name = name;
		this.type = type;
		this.articleTags = articleTags;
		this.productTags = productTags;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Set getArticleTags() {
		return this.articleTags;
	}

	public void setArticleTags(Set articleTags) {
		this.articleTags = articleTags;
	}

	public Set getProductTags() {
		return this.productTags;
	}

	public void setProductTags(Set productTags) {
		this.productTags = productTags;
	}

}